package android.cs2340UDT;

public class User {
	
	private String name;
	
	private String username;
	
	private String email;
	
	private String password;
	
	private String dateOfBirth;
	
	private Manager systemManager;
	
	public User(String name, String username, String password, String email, String dateOfBirth, Manager systemManager) {
		
		this.name = name;
		
		this.name = username;
		
		this.email = email;
		
		this.password = password;
		
		this.dateOfBirth = dateOfBirth;
		
		this.systemManager = systemManager;
		
	}
	
	public boolean checkPassword(String password) {
		if(this.password.equals(password)) {
			return true;
		}
		else {
			return false;
		}
	}
	
	public Manager getManager() {
		return systemManager;
	}
	
	public String getUsername() {
		return username;
	}
}
